home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 103
/
Vol 103.iso
/
games
/
tontie_h.swf
/
scripts
/
DefineSprite_173
/
frame_21
/
DoAction.as
Wrap
Text File
|
2010-03-13
|
511b
|
31 lines
e_all = [1,2,3,4,5,6,7,8,9];
e = [];
i = 1;
while(i <= 9)
{
targ = Math.floor(Math.random() * e_all.length);
e.push(e_all[targ]);
e_all.splice(targ,1);
i++;
}
no = 0;
i = 0;
while(i < 9)
{
if(eval("_root.enemy" + e[i]) == 0)
{
set("_root.enemy" + e[i],1);
set("_root.henkan" + e[i],name);
set("_root.henkan" + name,e[i]);
henkan = e[i];
_root.mogura_on += 1;
break;
}
no += 1;
i++;
}
if(no >= 9)
{
henkan = name;
}